package com.example.demo001.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class UserLoginDto {
    @ApiModelProperty(value = "用户名",example = "xiaokun", required = true)
    @NotBlank(message = "用户名不能为空或仅包含空格")
    private String username;
    @ApiModelProperty(value = "密码",example = "xk123456", required = true)
    @NotBlank(message = "密码不能为空或仅包含空格")
    private String password;
}
